package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.UserRole;

import java.util.List;

public interface UserRoleMapper {
    int deleteByPrimaryKey(Integer urId);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer urId);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    //根据用户ID查询用户角色
    List<UserRole> selectUserRoleByUserId(int userId);

    //查询所有用户角色权限
    List<UserRole> selectUserRole();
}